package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Date;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
//维修检测
public class Wxjiance {
    private int jcId;//检测id
    private Integer gdId;//维修工单id
    private User emp;//员工对象
    private String jcSm;//检测说明
    private Integer jcYjts;//预计检测天数
    private Timestamp jcKstime;//检测开始时间
    private Timestamp jcWctime;//检测完成时间

    @Id
    @Column(name = "jc_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getJcId() {
        return jcId;
    }

    public void setJcId(int jcId) {
        this.jcId = jcId;
    }

    @Basic
    @Column(name = "gd_id", nullable = true)
    public Integer getGdId() {
        return gdId;
    }

    public void setGdId(Integer gdId) {
        this.gdId = gdId;
    }

    @ManyToOne
    @JoinColumn(name = "emp_id", referencedColumnName = "emp_id")
    public User getEmp() {
        return emp;
    }

    public void setEmp(User emp) {
        this.emp = emp;
    }

    @Basic
    @Column(name = "jc_sm", nullable = true, length = 200)
    public String getJcSm() {
        return jcSm;
    }

    public void setJcSm(String jcSm) {
        this.jcSm = jcSm;
    }

    @Basic
    @Column(name = "jc_yjts", nullable = true)
    public Integer getJcYjts() {
        return jcYjts;
    }

    public void setJcYjts(Integer jcYjts) {
        this.jcYjts = jcYjts;
    }

    @Basic
    @Column(name = "jc_kstime", nullable = true)
    public Timestamp getJcKstime() {
        return jcKstime;
    }

    public void setJcKstime(Timestamp jcKstime) {
        this.jcKstime = jcKstime;
    }

    @Basic
    @Column(name = "jc_wctime", nullable = true)
    public Timestamp getJcWctime() {
        return jcWctime;
    }

    public void setJcWctime(Timestamp jcWctime) {
        this.jcWctime = jcWctime;
    }

}
